package com.study.springcloud.ribbon;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author raoluping
 * @Date 2017/10/26 14:43
 * @Description
 */
@RestController
@RequestMapping("/ribbon")
public class ConsumerControllerByRibbon {
  @Autowired
  private HelloService helloService;

  @RequestMapping("/sayHi")
  public String sayHi(@RequestParam String name) {
    return helloService.sayHello(name);
  }
}
